package so.book;

import ivan.bookKeeper.R;
import domain.Book;
import android.content.Context;
import so.GeneralSystemOperation;

public class DeleteBook extends GeneralSystemOperation {

	public DeleteBook(Context context) {
		super(context);
	}

	@Override
	protected Object doInBackground(Object... params) {
		Book book = (Book) params[0];
		dbHandler.deleteObject(book);
		toastMessage = book.toString() + " "
				+ context.getString(R.string.toastMessage_success_delete);
		return null;
	}

}
